package com.varian.system.config;

import com.varian.service.exception.BizExceptionResolve;
import com.varian.system.service.ISysBizExceptionService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ben
 * @since 2024/7/22
 */
@Configuration
public class SystemConfig {

    @Bean
    public BizExceptionResolve bizExceptionResolve(ISysBizExceptionService baseService) {
        return baseService::getMessageByCode;
    }
}
